-- BP 7.1.6 content: InstanceStateMachine syschar: 3 persistence-version: 7.1.6

INSERT INTO SM_ISM
	VALUES ("68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"90263998-67f3-470e-b430-045603848c2e");
INSERT INTO SM_SM
	VALUES ("68d8cddb-b42d-451b-a7b6-4588dc508a58",
	'',
	0);
INSERT INTO SM_MOORE
	VALUES ("68d8cddb-b42d-451b-a7b6-4588dc508a58");
INSERT INTO SM_LEVT
	VALUES ("52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	1,
	'create',
	0,
	'',
	'DURD1',
	'');
INSERT INTO SM_LEVT
	VALUES ("f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	2,
	'destroy',
	0,
	'',
	'DURD2',
	'');
INSERT INTO SM_STATE
	VALUES ("553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	'Creating',
	1,
	0);
INSERT INTO SM_CH
	VALUES ("553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEME
	VALUES ("553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_STATE
	VALUES ("0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	'Destroying',
	2,
	1);
INSERT INTO SM_CH
	VALUES ("0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"52564a79-b22b-47b2-a6f8-0eda821c532f",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CH
	VALUES ("0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"f11de96a-423d-45c7-b3da-4d7a968ff534",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CRTXN
	VALUES ("5a018715-f315-4365-be55-1aeecb3602c7",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"52564a79-b22b-47b2-a6f8-0eda821c532f",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("5a018715-f315-4365-be55-1aeecb3602c7",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_NSTXN
	VALUES ("7d278731-302e-4de5-92f1-45c4ca0078f5",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"553e7368-0c1c-4e78-96e1-d28b95996ef8",
	"f11de96a-423d-45c7-b3da-4d7a968ff534",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("7d278731-302e-4de5-92f1-45c4ca0078f5",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_MOAH
	VALUES ("aff5e2b2-6217-44c9-8a2e-63903febdc70",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"553e7368-0c1c-4e78-96e1-d28b95996ef8");
INSERT INTO SM_AH
	VALUES ("aff5e2b2-6217-44c9-8a2e-63903febdc70",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58");
INSERT INTO SM_ACT
	VALUES ("aff5e2b2-6217-44c9-8a2e-63903febdc70",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	1,
	'// Only create if type doesn''t exist
select many durds from instances of DURD;
if (cardinality durds == 1)
   create object instance type of TYPE;
   create object instance core of CORE;
   relate type to core across R401;
   type.name = "duration";
   core.type = data_t::DURATION;
   relate core to self across R403;
   self.generateSupportedOperators();
else
   LOG::LogFailure(message:"Multiple creation of DURD attempted!");
   generate DURD2:destroy to self;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("e9c8faf3-5a2e-425b-8d2f-b4907e7a5294",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"5a018715-f315-4365-be55-1aeecb3602c7");
INSERT INTO SM_AH
	VALUES ("e9c8faf3-5a2e-425b-8d2f-b4907e7a5294",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58");
INSERT INTO SM_ACT
	VALUES ("e9c8faf3-5a2e-425b-8d2f-b4907e7a5294",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	1,
	'',
	'',
	0);
INSERT INTO SM_MOAH
	VALUES ("be37dcee-796b-4341-8aab-3813e603b35b",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"0a9d113d-b6bc-4fcf-9c23-2197b83404cf");
INSERT INTO SM_AH
	VALUES ("be37dcee-796b-4341-8aab-3813e603b35b",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58");
INSERT INTO SM_ACT
	VALUES ("be37dcee-796b-4341-8aab-3813e603b35b",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	1,
	'select one core related by self->CORE[R403];
if (not empty core)
  core.destroy();
  unrelate core from self across R403;
  delete object instance core;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("72a6db57-c5b0-446f-96c5-400f801ad8a8",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	"7d278731-302e-4de5-92f1-45c4ca0078f5");
INSERT INTO SM_AH
	VALUES ("72a6db57-c5b0-446f-96c5-400f801ad8a8",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58");
INSERT INTO SM_ACT
	VALUES ("72a6db57-c5b0-446f-96c5-400f801ad8a8",
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	1,
	'',
	'',
	0);
INSERT INTO GD_MD
	VALUES ("97585249-ff68-4c93-8d41-5f4e298b6c9e",
	8,
	"68d8cddb-b42d-451b-a7b6-4588dc508a58",
	40,
	0,
	0,
	1,
	1,
	1,
	12,
	1,
	0,
	0,
	0,
	0,
	0,
	'4.1.17',
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Duration::Instance State Machine');
INSERT INTO GD_GE
	VALUES ("90c894d6-27f1-405e-b7b6-07b1ed2ede3a",
	"97585249-ff68-4c93-8d41-5f4e298b6c9e",
	"553e7368-0c1c-4e78-96e1-d28b95996ef8",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Duration::Instance State Machine::Creating');
INSERT INTO GD_SHP
	VALUES ("90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO GD_NCS
	VALUES ("90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO DIM_ND
	VALUES (169.000000,
	97.000000,
	"90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO DIM_GE
	VALUES (4239.000000,
	3092.000000,
	"90c894d6-27f1-405e-b7b6-07b1ed2ede3a",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("90c894d6-27f1-405e-b7b6-07b1ed2ede3a",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("3c2f8fba-d934-4deb-8ab1-9d11d8b17e51",
	4314.000000,
	3092.000000,
	"90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO DIM_CON
	VALUES ("34701f0a-07c5-4ac6-8c0c-177f6315ee50",
	4488.000000,
	3205.000000,
	"90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO DIM_CON
	VALUES ("1d57ffef-ba6a-4085-9d97-eeb425bbb29f",
	4326.000000,
	3189.000000,
	"90c894d6-27f1-405e-b7b6-07b1ed2ede3a");
INSERT INTO GD_GE
	VALUES ("42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"97585249-ff68-4c93-8d41-5f4e298b6c9e",
	"5a018715-f315-4365-be55-1aeecb3602c7",
	49,
	0,
	'DURD1: create');
INSERT INTO GD_CON
	VALUES ("42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("8ed0c85e-3074-4b02-a440-95235276ef9c",
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"8ed0c85e-3074-4b02-a440-95235276ef9c");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"8ed0c85e-3074-4b02-a440-95235276ef9c",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("8ed0c85e-3074-4b02-a440-95235276ef9c",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("8c8c5b1a-cd97-4948-b9e8-1e905adfe74b",
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"8c8c5b1a-cd97-4948-b9e8-1e905adfe74b");
INSERT INTO DIM_GE
	VALUES (4136.000000,
	3043.000000,
	"8c8c5b1a-cd97-4948-b9e8-1e905adfe74b",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("8c8c5b1a-cd97-4948-b9e8-1e905adfe74b",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("0caca31c-0521-44ca-b6ab-f0f541e75040",
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"0caca31c-0521-44ca-b6ab-f0f541e75040");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"0caca31c-0521-44ca-b6ab-f0f541e75040",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("0caca31c-0521-44ca-b6ab-f0f541e75040",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("ef6c578d-7751-44d6-9f3c-d84247e83b6a",
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"00000000-0000-0000-0000-000000000000",
	"23a36e09-f811-4b90-bb38-ae43fc7fd8f7",
	"6c772fa6-185b-4172-9a79-e0a3166cc90d");
INSERT INTO DIM_WAY
	VALUES ("23a36e09-f811-4b90-bb38-ae43fc7fd8f7",
	4314.000000,
	3092.000000,
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("6c772fa6-185b-4172-9a79-e0a3166cc90d",
	4314.000000,
	3008.000000,
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"00000000-0000-0000-0000-000000000000",
	"23a36e09-f811-4b90-bb38-ae43fc7fd8f7");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("3c2f8fba-d934-4deb-8ab1-9d11d8b17e51",
	"00000000-0000-0000-0000-000000000000",
	"42c7f7e4-0ddf-4cf0-b5ff-c2f1f378e2ed");
INSERT INTO GD_GE
	VALUES ("c4915695-54db-484b-8b61-6c55a46e16de",
	"97585249-ff68-4c93-8d41-5f4e298b6c9e",
	"0a9d113d-b6bc-4fcf-9c23-2197b83404cf",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Duration::Instance State Machine::Destroying');
INSERT INTO GD_SHP
	VALUES ("c4915695-54db-484b-8b61-6c55a46e16de");
INSERT INTO GD_NCS
	VALUES ("c4915695-54db-484b-8b61-6c55a46e16de");
INSERT INTO DIM_ND
	VALUES (180.000000,
	84.000000,
	"c4915695-54db-484b-8b61-6c55a46e16de");
INSERT INTO DIM_GE
	VALUES (4239.000000,
	3272.000000,
	"c4915695-54db-484b-8b61-6c55a46e16de",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("c4915695-54db-484b-8b61-6c55a46e16de",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("ac316e24-466a-4cc8-896e-c430504b19e3",
	4326.000000,
	3272.000000,
	"c4915695-54db-484b-8b61-6c55a46e16de");
INSERT INTO GD_GE
	VALUES ("a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"97585249-ff68-4c93-8d41-5f4e298b6c9e",
	"7d278731-302e-4de5-92f1-45c4ca0078f5",
	42,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Duration::Instance State Machine::Creating::DURD2: destroy');
INSERT INTO GD_CON
	VALUES ("a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("eab901ed-bb59-411f-b2fa-ef56ecbf56cf",
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"eab901ed-bb59-411f-b2fa-ef56ecbf56cf");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"eab901ed-bb59-411f-b2fa-ef56ecbf56cf",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("eab901ed-bb59-411f-b2fa-ef56ecbf56cf",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("52fd68c5-c254-4e07-9b58-06338988c913",
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"52fd68c5-c254-4e07-9b58-06338988c913");
INSERT INTO DIM_GE
	VALUES (4348.000000,
	3219.000000,
	"52fd68c5-c254-4e07-9b58-06338988c913",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("52fd68c5-c254-4e07-9b58-06338988c913",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("c0b9f71c-ba20-453e-a9e5-613e8331d990",
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"c0b9f71c-ba20-453e-a9e5-613e8331d990");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"c0b9f71c-ba20-453e-a9e5-613e8331d990",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("c0b9f71c-ba20-453e-a9e5-613e8331d990",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("08bf2acb-b045-4e8f-83eb-9677575a2d6d",
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"00000000-0000-0000-0000-000000000000",
	"0d9324c0-ba71-46b3-9bfb-044cd7b55259",
	"0f65439f-d1f6-4597-8c31-6a1e2a100a31");
INSERT INTO DIM_WAY
	VALUES ("0d9324c0-ba71-46b3-9bfb-044cd7b55259",
	4326.000000,
	3189.000000,
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("0f65439f-d1f6-4597-8c31-6a1e2a100a31",
	4326.000000,
	3272.000000,
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("a4e9645e-3445-45f9-9ce9-18d7169fb1db",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("1d57ffef-ba6a-4085-9d97-eeb425bbb29f",
	"ac316e24-466a-4cc8-896e-c430504b19e3",
	"a4e9645e-3445-45f9-9ce9-18d7169fb1db");
INSERT INTO DIM_DIA
	VALUES ("97585249-ff68-4c93-8d41-5f4e298b6c9e",
	'',
	1.000000,
	0.000000,
	0.000000,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO O_OBJ_PROXY
	VALUES ("90263998-67f3-470e-b430-045603848c2e",
	'Duration',
	410,
	'DURD',
	'"Similarly, to define a data type that represents duration, write
    data type <data type name> is duration
        range is from <low limit> to <high limit>
        units are [ year | month | day | hour | minute | second | millisec | 
        microsec ]
        precision is <smallest discriminated value>

The operations permitted using data types based on time and duration are:
    time := time ± duration
    duration := duration ± duration
    duration := duration * numeric
    duration := duration / numeric
    duration := time - time
    as well as the standard comparisons of < (read as "before"), >, ≤ , and ≥ . 
    Each such comparison yields a data element of base type boolean. 
    Comparisons are defined only between elements of the same base type."
    [OOAData]',
	"00000000-0000-0000-0000-000000000000",
	'../Duration.xtuml');
